package com.service.strategy;

/**
 * 学生折扣
 *
 * @author wangyongkun
 * @create 2021/3/24
 */
public class StudentDiscount implements Discount {
    private final double DISCOUNT = 0.8;

    @Override
    public double calculate(double price) {
        System.out.println("学生票: ");
        return price * DISCOUNT;
    }
}
